package com.codedancer.campus.client.api.user.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@ApiModel("修改密码Ro")
public class UpdatePasswordRo {

    @ApiModelProperty("旧密码")
    @NotEmpty(message = "请输入旧密码")
    private String oldPassword;

    @ApiModelProperty("新密码")
    @NotEmpty(message = "请输入新密码")
    @Length(min = 6,max = 12,message = "新密码在6-12位之间")
    private String newPassword;

    @ApiModelProperty("确认密码")
    @NotEmpty(message = "请输入确认密码")
    @Length(min = 6,max = 12,message = "新密码在6-12位之间")
    private String rePassword;
}
